package com.white.bean;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 举报：举报ID、举报用户ID、被举报用户ID、举报内容、处理状态、举报时间。
 * create table report(
 * reportId int primary key AUTO_INCREMENT comment "举报ID",
 * userId int comment "举报用户ID",
 * foreign key(userId) REFERENCES contest(userId) on delete cascade on update cascade,
 * reportUserId int comment "被举报用户ID",
 * foreign key(reportUserId) REFERENCES user(userId) on delete cascade on update cascade,
 * createTime TIMESTAMP not null default CURRENT_TIMESTAMP comment "举报时间"
 * );
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Report {
    @TableId("reportId")
    private Long reportId;
    private Long userId, reportUserId;
    private String createTime;

    public Report(Long userId, Long reportUserId) {
        this.userId = userId;
        this.reportUserId = reportUserId;
    }
}
